package cn.com.inossem.datarequest;

import cn.com.inossem.operation.AddBaGuaHuifuOperation;
import cn.com.inossem.operation.AddBaGuaOperation;
import cn.com.inossem.operation.AddEducationOperation;
import cn.com.inossem.operation.AddFriendsOperation;
import cn.com.inossem.operation.AddGongsiOperation;
import cn.com.inossem.operation.AddProfessionalOperation;
import cn.com.inossem.operation.AddTongxuluOperation;
import cn.com.inossem.operation.AddXiangmuOperation;
import cn.com.inossem.operation.AddYaoqingFriendsOperation;
import cn.com.inossem.operation.AgreeFriendOperation;
import cn.com.inossem.operation.ApplyCollectionOperation;
import cn.com.inossem.operation.BaGuaListOperation;
import cn.com.inossem.operation.BaguaHuifuDelOperation;
import cn.com.inossem.operation.DelBaguaOperation;
import cn.com.inossem.operation.DelEducationOperation;
import cn.com.inossem.operation.DelFriendsOperation;
import cn.com.inossem.operation.DelProfessionalOperation;
import cn.com.inossem.operation.DelProjectGongsiOperation;
import cn.com.inossem.operation.DelProjectXiangmuOperation;
import cn.com.inossem.operation.EducationOperation;
import cn.com.inossem.operation.FriendsDetaisOperation;
import cn.com.inossem.operation.FriendsListOperation;
import cn.com.inossem.operation.GetMessageOperation;
import cn.com.inossem.operation.GetSearchOperation;
import cn.com.inossem.operation.GetTongxunluOperation;
import cn.com.inossem.operation.JobsOpportunityOperation;
import cn.com.inossem.operation.JuBaoOperation;
import cn.com.inossem.operation.LoginOperation;
import cn.com.inossem.operation.MyMomentsOperation;
import cn.com.inossem.operation.PackageVersionOperation;
import cn.com.inossem.operation.PersonalCenterOperation;
import cn.com.inossem.operation.PreferencesOperation;
import cn.com.inossem.operation.ProfessionalOperation;
import cn.com.inossem.operation.ProjectGongsiOperation;
import cn.com.inossem.operation.ProjectXiangmuOperation;
import cn.com.inossem.operation.RegisteredOperation;
import cn.com.inossem.operation.SkillsOperation;
import cn.com.inossem.operation.UploadSkillsOperation;
import cn.com.inossem.operation.UploadZhanghaoOperation;
import cn.com.inossem.operation.UploadmimaOperation;
import cn.com.inossem.operation.WangjimimaOperation;
import cn.com.inossem.operation.WebViewOperation;
import cn.com.inossem.operation.XiaochuCollectionOperation;
import cn.com.inossem.operation.YanZhengmaOperation;
import cn.com.inossem.operation.ZanOperation;
import cn.com.inossem.operation.ZhuXiaoOperation;
import cn.com.inossem.requestmanager.WooRequestFactory;

import com.foxykeep.datadroid.service.RequestService;

public final class WooRequestService extends RequestService {

	@Override
	protected int getMaximumNumberOfThreads() {
		return 3;
	}

	@Override
	public Operation getOperationForType(int requestType) {
		System.out.println("requestType:" + requestType);
		switch (requestType) {

		case WooRequestFactory.REQUEST_TYPE_lOGIN: // 登录
			return new LoginOperation();
		case WooRequestFactory.REQUEST_TYPE_JOBS: // 项目机会列表
			return new JobsOpportunityOperation();
		case WooRequestFactory.REQUEST_TYPE_PREFERENCES: // 上传偏好接口
			return new PreferencesOperation();
		case WooRequestFactory.REQUEST_TYPE_APPLY:// 收藏申請接口
			return new ApplyCollectionOperation();
		case WooRequestFactory.REQUEST_TYPE_PERSONAL:// 修改个人中心接口
			return new PersonalCenterOperation();
		case WooRequestFactory.REQUEST_TYPE_SKILLS:// 查询用户技能
			return new SkillsOperation();
		case WooRequestFactory.REQUEST_TYPE_UPDATESKILLS:// 修改技能
			return new UploadSkillsOperation();
		case WooRequestFactory.REQUEST_TYPE_REGISTERED:
			return new RegisteredOperation();
		case WooRequestFactory.REQUEST_TYPE_PROJECTGONGSI:
			return new ProjectGongsiOperation();
		case WooRequestFactory.REQUEST_TYPE_PROJECTXIANGMU:// 查询公司项目
			return new ProjectXiangmuOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDGONGSI:// 添加公司
			return new AddGongsiOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDXIANGMU:// 添加公司项目
			return new AddXiangmuOperation();
		case WooRequestFactory.REQUEST_TYPE_DELGONGSI:// 删除公司
			return new DelProjectGongsiOperation();
		case WooRequestFactory.BREQUEST_TYPE_DELXIANGMU:
			return new DelProjectXiangmuOperation();
		case WooRequestFactory.REQUEST_TYPE_PROFESSIONAL:
			return new ProfessionalOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDPROFESSIONAL:
			return new AddProfessionalOperation();
		case WooRequestFactory.REQUEST_TYPE_EDUCATION:
			return new EducationOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDEDUCATIONL:
			return new AddEducationOperation();
		case WooRequestFactory.REQUEST_TYPE_UPDATEZHANGHAOL:
			return new UploadZhanghaoOperation();
		case WooRequestFactory.REQUEST_TYPE_DELEDUCATION:// 删除教育
			return new DelEducationOperation();
		case WooRequestFactory.REQUEST_TYPE_DELPROFESSIONAL:// 删除职业背景
			return new DelProfessionalOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDBAGUA:// 添加八卦
			return new AddBaGuaOperation();
		case WooRequestFactory.REQUEST_TYPE_SEARCHBAGUA:// 添加八卦
			return new GetSearchOperation();
		case WooRequestFactory.REQUEST_TYPE_BAGUALIST:// 八卦列表
			return new BaGuaListOperation();
		case WooRequestFactory.REQUEST_TYPE_YANZHENGMA:// 验证码
			return new YanZhengmaOperation();
		case WooRequestFactory.REQUEST_TYPE_ZAN:// 赞
			return new ZanOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDBAGUAHUIFU:// 八卦回复
			return new AddBaGuaHuifuOperation();
		case WooRequestFactory.REQUEST_TYPE_ZHUXIAO:// 注销
			return new ZhuXiaoOperation();
		case WooRequestFactory.REQUEST_TYPE_XIAOCHU:// 注销
			return new XiaochuCollectionOperation();
		case WooRequestFactory.REQUEST_TYPE_UPDATAMIMA:// 注销
			return new UploadmimaOperation();
		case WooRequestFactory.REQUEST_TYPE_ADDFRIENDS:// 添加好友
			return new AddFriendsOperation();
		case WooRequestFactory.REQUEST_TYPE_FRIENDSDETAILS:// 好友详情
			return new FriendsDetaisOperation();
		case WooRequestFactory.REQUEST_TYPE_FRIENDSLIST:// 好友列表
			return new FriendsListOperation();
		case WooRequestFactory.REQUEST_TYPE_DELBAGUA:// 好友列表
			return new DelBaguaOperation();
		case WooRequestFactory.REQUEST_TYPE_DELFRIENDS:// 添加好友
			return new DelFriendsOperation();
		case WooRequestFactory.REQUEST_TYPE_JUBAO:// 添加好友
			return new JuBaoOperation();
		case WooRequestFactory.REQUEST_TYPE_TONGXULU:// 添加好友
			return new AddTongxuluOperation();
		case WooRequestFactory.REQUEST_TYPE_GETTONGXULU:// 添加好友
			return new GetTongxunluOperation();
		case WooRequestFactory.REQUEST_TYPE_YAOQING:// 邀请好友
			return new AddYaoqingFriendsOperation();
		case WooRequestFactory.REQUEST_TYPE_MESSAGELIST:// 获取消息列表
			return new GetMessageOperation();
		case WooRequestFactory.REQUEST_TYPE_AGREEFRIEND:// 同意好友申请
			return new AgreeFriendOperation();
		case WooRequestFactory.REQUEST_TYPE_BAGUAHUIFUDEL:// 同意好友申请
			return new BaguaHuifuDelOperation();
		case WooRequestFactory.REQUEST_TYPE_WANGJIMIMA:// 忘记密码
			return new WangjimimaOperation();
		case WooRequestFactory.REQUEST_TYPE_WEBVIEW:// webview
			return new WebViewOperation();
		case WooRequestFactory.REQUEST_TYPE_MYMOMENTS:// webview
			return new MyMomentsOperation();
		case WooRequestFactory.REQUEST_TYPE_PACKAGE_VERSION:// webview
			return new PackageVersionOperation();
		}
		return null;
	}
}
